from flask import Flask
from flask import render_template

app=Flask(__name__)

@app.route("/index/")
def index():
    return render_template("index.html")

# new新闻管理
@app.route("/news/")
def news():
    return render_template("news.html")

#permission.html 权限管理
@app.route("/permission/")
def permission():
    return render_template("permission.html")

#attendance_me.html 个人考勤
@app.route("/attendance_me/")
def attendance_me():
    return render_template("attendance_me.html")

# attendance_subordinate.html  下属考勤管理
@app.route("/attendance_subordinate/")
def attendance_subordinate():
    return render_template("attendance_subordinate.html")

# person.html 职员管理
@app.route("/person/")
def person():
    return render_template("person.html")

 # department.html 部门管理
@app.route("/department/")
def department():
    return render_template("department.html")

#add_permission
@app.route("/add_permission/")
def add_permission():
    return render_template("add_permission.html")

#add_department
@app.route("/add_department/")
def add_department():
    return render_template("add_department.html")

#edit_permission
@app.route("/edit_permission/")
def edit_permission():
    return render_template("edit_permission.html")

# edit_department
@app.route("/edit_department/")
def edit_department():
    return render_template("edit_department.html")

#add_news
@app.route("/add_news/")
def add_news():
    return render_template("add_news.html")

#detail_news
@app.route("/detail_news/")
def detail_news():
    return render_template("detail_news.html")

#profile 个人中心
@app.route("/profile/")
def profile():
    return render_template("profile.html")

#detail_person
@app.route("/detail_person/")
def detail_person():
    return render_template("detail_person.html")



# edit_news
@app.route("/edit_news/")
def edit_news():
    return render_template("edit_news.html")

# login.html
@app.route("/login/")
def login():
    return render_template("login.html")

# edit_person
@app.route("/edit_person/")
def edit_person():
    return render_template("edit_person.html")


# position_permission
@app.route("/position_permission/")
def position_permission():
    return render_template("position_permission.html")

# position.html
@app.route("/position/")
def position():
    return render_template("position.html")

# add_person.html
@app.route("/add_person/")
def add_person():
    return render_template("add_person.html")

if __name__ == '__main__':

    app.run(
        host="127.0.0.1",
        port=80,
        debug=True
    )